(function() {
    $(document).ready(function() {
        
	$('.wdg_podcastpag_01 .wdg_podcastpag_01_show').click(function(e){
            e.preventDefault();
            
            $(this).next(".selected").removeClass("selected");
            $(this).addClass("selected"); 
            
            var parent = $(this).closest(".wdg_podcastpag_01");
            var podcasts = parent.find(".wdg_podcastpag_01_podcasts");
            var paginator = parent.find(".nav_paginator_01");    
            
            podcasts.slideUp('fast');
            paginator.slideUp('fast');

            
        });
        
        $('.wdg_podcastpag_01 .wdg_podcastpag_01_hide').click(function(e){
            e.preventDefault();
			$(this).prev(".selected").removeClass("selected");
            $(this).addClass("selected");
            

            var parent = $(this).closest(".wdg_podcastpag_01");
            var podcasts = parent.find(".wdg_podcastpag_01_podcasts");
            var paginator = parent.find(".nav_paginator_01");    
            
            podcasts.slideDown('fast');
            paginator.slideDown('fast');

        });
    });
}());